package com.lots.mapper;

import com.lots.domain.entity.ActivityReservation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityReservationMapper {

    /**
     * 查询用户是否预约过改活动
     * @param activityId
     * @param userId
     * @return
     */
    Long selectByUserId(Long activityId,Long userId);
    void deleteReservation(Long userId, Long activityId);

    void insertReservation(Long userId, Long activityId);
}
